package com.njuse.seecjvm.memory.jclass;

import com.njuse.seecjvm.classloader.classfileparser.FieldInfo;
import com.njuse.seecjvm.classloader.classfileparser.MethodInfo;
import com.njuse.seecjvm.classloader.classfileparser.attribute.CodeAttribute;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Field extends ClassMember {
	
    private int maxStack;
    private int maxLocal;
    private int argc;
    private byte[] code;
    public Field(FieldInfo info, JClass clazz) {



            this.clazz = clazz;
            accessFlags = info.getAccessFlags();
            name = info.getName();
            descriptor = info.getDescriptor();


        }
        //todo initilize the attributes from info
        /**
         * tips: refer to constructor of Method
         */

    }

